Skip to main content

Screen Control

Screen Send Mouse Action

{
"action": "pointerEvent",
"comm": {
"deviceIds": "fa3523ea0510,8318fc66",
"mask": "0",
"x": "0.5",
"y": "0.5",
"endx": "0",
"endy": "0",
"delta": "1"
}
}

Operational Events

mask Event type
0 press 1 move 2 release 3 right mouse button 4 wheel up 5 wheel down 6 slide up 7 slide down 8 slide left 9 slide right
x, y coordinates Pass percentage Percentage endx endy also
Slide up Slide down Slide left Slide right Need to pass endx endy Other events just pass 0
Wheel up, wheel down, delta, nothing else.

Demo A demo example of a slide-up screen

//Perform the press action first mask=0 x=0.5 y=0.5 From the center.

{
"action": "PointerEvent",
"comm": {
"deviceIds":"all",
"mask":"0",
"x":"0.5",
"y":"0.5",
"endx":"0",
"endy":"0",
"delta":"0"
}
}



//Next, execute the move mask=1 y move to 0.2
//Multiple moves can be performed before releasing and they become drags.

{
"action": "PointerEvent",
"comm": {
"deviceIds":"all",
"mask":"1",
"x":"0.5",
"y":"0.2",
"endx":"0",
"endy":"0",
"delta":"0"
}
}



//Finally release mask=2 x y pass the last position moved to
{
"action": "PointerEvent",
"comm": {
"deviceIds":"all",
"mask":"2",
"x":"0.5",
"y":"0.2",
"endx":"0",
"endy":"0",
"delta":"0"
}
}

TIP:

deviceIds Parameters example:all,8318fc66,fa3523ea0510

deviceIds The parameter 'all' represents all phones, and the phone connection name can also be passed For example: 8318fc66, fa3523ea0510